Conversation
AGENTS.md
Outdated
There was a problem hiding this comment.
We should be using pnpm, we mostly reference this in our docs
AGENTS.md
Outdated
| </PlaygroundProvider> | ||
| ); | ||
| } | ||
| yarn dev |
There was a problem hiding this comment.
we should remove the others to stay in line with using pnpm across
|
Good shout, I think the doc generation picked up some stale Yarn docs
…On Tue, Nov 18, 2025 at 10:52 AM Allen Wyma ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In AGENTS.md
<#105 (comment)>
:
> +- Test files: *.test.ts
+
+## Error Handling
+- Use custom error classes from utils/errors.ts
+- Always provide meaningful error messages
+- Use logger.ts for consistent logging
+- Handle dry-run mode in all mutating operations
+
+## Testing
+- Use vitest with globals
+- Place tests alongside source files
+- Use .test.ts extension
+- Mock filesystem with memfs where needed
+
+## Development Practices
+- Use yarn for package management
We should be using pnpm, we mostly reference this in our docs
------------------------------
In AGENTS.md
<#105 (comment)>
:
> +- Write tests for all functionality
+- Use Wrangler for deployments to Cloudflare Workers
+
+## Project Structure
+- `packages/`: Contains all project packages
+ - `mcp/`: Main MCP implementation for Cloudflare Workers
+ - `test-utils/`: Utilities for testing
+- `examples/`: Contains example implementations
+ - `crud-mcp/`: Example CRUD application using MCP framework
+ - `simple-prompt-agent/`: Example agent with only a prompt for chatting
+- Main package: packages/mcp/src/index.ts
+- MCP Server implementation: packages/mcp/src/mcp/server.ts
+- Example application: examples/crud-mcp/src/index.ts
+
+## Development Workflow
+1. Install dependencies at root level: `yarn install`
same here
------------------------------
In packages/playground/README.md
<#105 (comment)>
:
> - showHeader={true}
- className="h-full"
- />
- </div>
- </div>
- );
-}
-
-export default function App() {
- return (
- <PlaygroundProvider config={{ /* your config */ }}>
- <CustomChat />
- </PlaygroundProvider>
- );
-}
+yarn dev
we should remove the others to stay in line with using pnpm across
—
Reply to this email directly, view it on GitHub
<#105 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFKCPQX4TJYB44AWDGQK5HT35L255AVCNFSM6AAAAACMKMQ6ZSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTINZVGQYDQMJSGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
AGENTS.md
Outdated
Adding in status indicator for available agents and graceful errors when the call fails through toasters.
95cdbba to
e587993
Compare
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
🐳 Preview MCP Toolbox Docker Image Built Image: Tags: Usage: # Pull the preview image
docker pull ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105
# Run the MCP Toolbox server
docker run -p 11990:11990 \
-e PROXY_ID=preview-toolbox-105 \
-e MCP_SERVER_HOST=host.docker.internal:6050 \
--add-host host.docker.internal:host-gateway \
-v $(pwd)/data:/app/data \
ghcr.io/null-shot/typescript-agent-tookit/mcp-toolbox:pr-105Health Check: curl http://localhost:11990/healthNote: Preview images are automatically cleaned up after 7 days. |
|
This was superseded by #111 |
Summary
This PR introduces a complete rewrite of the playground package, transforming it from a basic MCP (Model Context Protocol) server management tool into a comprehensive AI Agent management and chat interface. The changes represent a fundamental architectural shift from server-focused management to agent-centric interaction.
Key Changes Overview
🏗️ Architecture Transformation
📦 Package Structure Changes
@nullshot/playgroundbut completely restructuredtsupfor library builds alongside Next.js app🎨 UI/UX Revolution
Detailed Implementation
1. Core Architecture Changes
Agent Management System (
src/lib/agent-*.ts)agent-config.tsx: Centralized agent configuration managementagent-context.tsx: React context for agent state management with 285 lines of test coverageagent-health.ts: Real-time agent health monitoring and status trackingagent-persistence.ts: Local storage persistence for agent configurationsagent-storage.ts: Agent data storage utilitiesagent-utils.tsx: Utility functions with comprehensive test suite (297 lines of tests)New Component Architecture
message.tsx,response.tsx)actions.tsx,confirmation.tsx)canvas.tsx,image.tsx,web-preview.tsx)chain-of-thought.tsx,reasoning.tsx,artifact.tsx)2. Technology Stack Upgrades
Frontend Framework
UI/UX Enhancements
Development Tools
3. New Features & Capabilities
Agent Management
Enhanced Chat Interface
Developer Experience
AGENT_MANAGEMENT.md)4. File Structure Changes
Added Files (150+ new files)
src/components/ai-elements/Removed Files
Modified Files
package.jsontsup.config.ts,tsconfig.jsonwrangler.jsoncfor Cloudflare Workers5. Export System
The package now provides a comprehensive export system:
6. Testing & Quality Assurance
Test Coverage
Code Quality
Breaking Changes
API Changes
Configuration Changes
Dependency Changes
Migration Guide
For Existing Users
For New Users
setup-chat.mdfor initial setupAGENT_MANAGEMENT.mdfor detailed guidance